home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_12_02
/
plauger
/
xmsg.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-12-05
|
662b
|
26 lines
Listing 1 -- class xmsg
class xmsg {
public:
typedef void(*raise_handler)(xmsg&);
private:
const char *what, *where, *why; // exposition
only
int alloced; // exposition only
static raise_handler handler; // exposition only
protected:
virtual void do_raise();
xmsg(const char *what_arg, const char *where_arg,
const char *why_arg, int copyfl);
public:
xmsg(const char *what_arg = 0, const char *where_arg
= 0,
const char *why_arg = 0);
virtual ~xmsg();
void raise();
const char *what() const;
const char *where() const;
const char *why() const;
static raise_handler set_raise_handler(raise_handler handler_arg);
};